<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%ceping_label_cate}}".
 *
 * @property integer $id
 * @property integer $cate
 * @property string $name
 * @property string $res1
 */
class LabelCate extends \yii\db\ActiveRecord    //标签种类表  题型分类
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%ceping_label_cate}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['cate'], 'integer'],
            [['name'], 'string', 'max' => 40],
            [['res1'], 'string', 'max' => 80]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'cate' => '题目类型',
            'name' => 'Name',
            'res1' => 'Res1',
        ];
    }
}
